import 'dart:ui';

class TextBean{
  Color color;
  String text;

  TextBean(this.color, this.text);

  Map<String, dynamic> get toMap => <String, dynamic>{
    'character': text,
    'color': color
  };

  Map<String, dynamic> get toValueMap => <String, dynamic>{
    'character': text,
    'colorValue': color.value
  };
}